<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link rel="stylesheet" href="css/index.css" />
    <title>毕业生简历管理系统</title>
    <style type="text/css">
        a:link {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:visited {
            font-size: 12px;
            color: #000000;
            text-decoration: none;
        }
        a:hover {
            font-size: 12px;
            color: #999999;
            text-decoration: none;
        }
        h1{
            font-family: 华文行楷;
            color: white;
        }
    </style>
</head>
<body>
<div id="container">
    <div id="hd">
        <div class="hd-wrap ue-clear">
            <div class="top-light"></div>
            <h1 style="margin-top: 20px">毕业生简历管理系统</h1>
            <div class="login-info ue-clear">
                <div class="welcome ue-clear"><span>欢迎您,</span><a href="employerRecommend?e_id=${employer.e_id}" class="user-name">${employer.name}</a></div>
            </div>
            <div class="toolbar ue-clear">
                <a href="employerExit" class="quit-btn exit"></a>
            </div>
        </div>
    </div>
    <div id="bd">
        <div class="wrap ue-clear">
            <div class="sidebar" style="margin-top: -20px">
                <h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav" style="margin-top: -10px">
                    <li class="recommend"><div class="nav-header" onclick="employerSkip1()"><a  class="ue-clear"><span>内容推荐</span></a></div></li>
                    <li class="position_manage"><div class="nav-header" onclick="employerSkip8()"><a class="ue-clear"><span>招聘岗位管理</span></a></div>
                    <li class="search"><div class="nav-header" onclick="employerSkip7()"><a class="ue-clear"><span>人才搜索</span></a></div></li>
                    <li class="inform"><div class="nav-header" onclick="employerSkip5()" ><a  class="ue-clear"><span>求职者通知</span></a></div></li>
                    <li class="manage"><div class="nav-header" onclick="employerSkip6()" ><a  class="ue-clear"><span>聘用信息反馈</span></a></div></li>
                </ul>
            </div>
            <div class="content">
                <div class="title" style="height: 35px"><h2 style="text-align: center;margin-top: 10px" class="title_email">欢迎使用QQ邮箱</h2></div>
                <div style="margin-top: 120px;margin-left: 60px;">
                    <form action="EmpSendEmail" enctype="multipart/form-data" method="post">
<%--                        <input name="e_name" value="${sessionScope.employer.name}" hidden>--%>
                        <div style="margin-top:40px;margin-left: 20%;">
                            <label>收件人</label>
                            <input  class="form-control" style="width: 60%;margin-left: 10px;"  type="text" name="to" placeholder="请输入收件人邮箱">
                        </div>

                        <div style="margin-top:40px;margin-left: 20%;">
                            <label>主题</label>
                            <input  class="form-control" style="width: 60%;margin-left: 20px;" type="text" name="subject" placeholder="请输入邮件主题">
                        </div>

                        <div style="margin-top:40px;margin-left: 20%;">
                            <label>正文</label>
                            <textarea class="form-control"  style="width: 60%;margin-left: 20px;" name="text" placeholder="请输入邮件正文" rows="3"></textarea>
                        </div>
                        <div style="margin-top:40px;margin-left: 20%;">
                        <input type="file" name="file" />
                        </div>
                        <button class="btn btn-default" style="margin-top:40px;margin-left: 20%;" type="submit" >发送</button>
                    </form>
                        <button onclick="returnPreviousPage()" class="btn btn-default" style="margin-left: 340px;margin-top:-55px;">返回</button>
                </div>

                <div class="pagination ue-clear"></div>
            </div>
        </div>
    </div>
</div>
</body>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://fastly.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script>
    function employerSkip1(){ const e_id="${employer.e_id}"; location.href="employerRecommend?e_id="+e_id}
    function employerSkip7(){ const e_id="${employer.e_id}"; location.href="findAllCandidates?e_id="+e_id}
    function employerSkip5(){ const e_id="${employer.e_id}"; location.href="employerNotice?e_id="+e_id}
    function employerSkip6(){ const e_id="${employer.e_id}"; location.href="findAllAcceptedCandidatesByEId?e_id="+e_id}
    function employerSkip8(){ const e_id="${employer.e_id}"; location.href="findAllPositionsByEId?e_id="+e_id}

    const  msg="${msg}";
    if(msg){
        alert(msg);
    }
    function returnPreviousPage()
    {
        window.history.back();
    }
</script>
</html>